/**
 * Created by Zhang JiRen
 * @date 2022/7/21 0021
 * 弹窗数据清理
 */
let backupsData = {};
export default {
  data: () => {
    return {
      ruleForm: {}
    };
  },

  watch: {
    dialogVisible: {
      handler: function(val) {
        if (!val) {
          this.ruleForm = Object.assign({}, backupsData);
        } else {
          backupsData = Object.assign({}, this.ruleForm);
        }
      }
    }
  }
};
